#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMenuBar>
#include <QDialog>
#include <QScrollArea>

#include "tools.h"
#include "zygtray.h"
#include "zygscrollarea.h"
#include "zygbackground.h"
#include "editclockdialog.h"


#define MAIN_BACKGROUND ":/resource/images/main_background.png"
#define CLEAR_BACKGROUND ":/resource/images/clear_background.png"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void reflashDisplayTimerList();

protected:
    void closeEvent(QCloseEvent* event) override;

private:
    Ui::MainWindow *ui;

    ZygScrollArea* scrollArea;
    ZygTrayIcon* tray;

    void initAlarmClock();
};

#endif // MAINWINDOW_H
